package com.yc.mybatis.bean;

import java.util.List;

public class GoodsInfo2 {
	private Integer Cno;
	private String Cname;
	private Integer Cpno;
	private Integer Ccredit;
	
	private List<GoodsType2> goodsType;
	

	
	public List<GoodsType2> getGoodsType() {
		return goodsType;
	}



	public void setGoodsType(List<GoodsType2> goodsType) {
		this.goodsType = goodsType;
	}



	@Override
	public String toString() {
		return "GoodsInfo2 [Cno=" + Cno + ", Cname=" + Cname + ", Cpno=" + Cpno + ", Ccredit=" + Ccredit
				+ ", goodsType=" + goodsType + "]";
	}



	public GoodsInfo2(Integer cno, String cname, Integer cpno, Integer ccredit) {
		super();
		Cno = cno;
		Cname = cname;
		Cpno = cpno;
		Ccredit = ccredit;
	}
	
	public GoodsInfo2() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public Integer getCno() {
		return Cno;
	}
	
	public void setCno(Integer cno) {
		Cno = cno;
	}
	
	public String getCname() {
		return Cname;
	}
	
	public void setCname(String cname) {
		Cname = cname;
	}
	
	public Integer getCpno() {
		return Cpno;
	}
	
	public void setCpno(Integer cpno) {
		Cpno = cpno;
	}
	public Integer getCcredit() {
		return Ccredit;
	}
	public void setCcredit(Integer ccredit) {
		Ccredit = ccredit;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((Ccredit == null) ? 0 : Ccredit.hashCode());
		result = prime * result + ((Cname == null) ? 0 : Cname.hashCode());
		result = prime * result + ((Cno == null) ? 0 : Cno.hashCode());
		result = prime * result + ((Cpno == null) ? 0 : Cpno.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsInfo2 other = (GoodsInfo2) obj;
		if (Ccredit == null) {
			if (other.Ccredit != null)
				return false;
		} else if (!Ccredit.equals(other.Ccredit))
			return false;
		if (Cname == null) {
			if (other.Cname != null)
				return false;
		} else if (!Cname.equals(other.Cname))
			return false;
		if (Cno == null) {
			if (other.Cno != null)
				return false;
		} else if (!Cno.equals(other.Cno))
			return false;
		if (Cpno == null) {
			if (other.Cpno != null)
				return false;
		} else if (!Cpno.equals(other.Cpno))
			return false;
		return true;
	}
	
	
}
